Interview Questions and Answer
Options:
a. Entity Framework is an ORM framework.
b. Entity Framework is an open source ORM framework.
c. Entity Framework is database mapping tool.
d. Entity Framework is object mapping tool.
Reveal Answer
Options:
a. Model window
b. Model Browser
c. EDM Designer
d. Solution Explorer
Reveal Answer
Options:
a. DbContext cannot be used in Code First approach
b. ObjectContext is a wrapper around DBContext
c. DbContext is a wrapper around ObjectContext
d. DbContext is a sealed class which cannot be override
Reveal Answer
Options:
a. Common Schema Definition Language
b. Conceptual Schema Definition Language
c. Conceptual Store Definition Language
d. Conceptual Storage Definition Language
Reveal Answer
Options:
a. LINQ-to-Entity
b. Entity SQL
c. Native SQL
Reveal Answer
Options:
a. It automatically generates the classes from the model and updates these classes dynamically when the model is changed.
b. It takes care of database connectivity.
c. It provides query syntax for querying the model
d. It does not provide any mechanism to track changes to the model’s objects.
Reveal Answer
Options:
a. myDbcontext.Entry(studentEntity).state = System.Data.Entity.EntityState.Modified
b. myDbcontext.Add(studentEntity).state = System.Data.Entity.EntityState.Modified
c. myDbcontext.Set(studentEntity).state = System.Data.Entity.EntityState.Modified
d. myDbcontext.Entity (studentEntity).ChangeState (System.Data.Entity.EntityState.Modified)
Reveal Answer
Options:
a. DBContextManager
b. ObjectContextManager
c. ObjectStateManager
d. EntityObjectManager
Reveal Answer
Options:
a. dbcontext.Database.SqlQuery("Select * from Student where studentid=1")
b. dbcontext.Students.SqlQuery("Select * from Student where studentid=1")
c. dbcontext.Configuration.SqlQuery("Select * from Student where studentid=1")
d. dbcontext.SqlQuery("Select * from Student where studentid=1")
Reveal Answer
Options:
a. myDBContext.Database.LazyLoadingEnabled = false;
b. myDBContext.Configuration.LazyLoadingEnabled = false;
c. myDBContext.LazyLoadingEnabled = false;
d. myDBContext.Students.LazyLoadingEnabled = false;
Reveal Answer
Options:
a. IObjectContextAdapter
b. IDBContextAdapter
c. IEntityObjectContext
d. IObjectContext
Reveal Answer
Options:
a. myDBContext.Students.Add(new Student(){ StudentName = "newStudent" });
b. myDBContext.Add(new Student(){ StudentName = "newStudent" });
c. myDBContext.Students(new Student(){ StudentName = "newStudent" });
d. myDBContext.Set(new Student(){ StudentName = "newStudent" });
Reveal Answer
Bestitcourse google plus

Thank you for visiting BestITCourses, How can I help you

Thank you for visiting BestITCourses, How can I help you